﻿using System;

namespace Eldert.IoT.Windows.ShipsEventProcessor
{
    public class EngineInformation
    {
        public string ShipName;
        public string EngineName;
        public double Temperature;
        public double RPM;
        public bool Warning;
        public int EngineWarning;
        public DateTime CreatedDateTime;
        
        public string GetWarningType()
        {
            switch (EngineWarning)
            {
                case 0:
                    return string.Empty;
                case 1:
                    return "Oilfilter";
                case 2:
                    return "Fuelfilter";
                case 3:
                    return "Oiltemperature";
                default:
                    return "Unknown warning type";
            }
        }
    }
}
